start=eval(input("请输入起始范围 "))
over=eval(input("请输入截止范围 "))
if start<100:
    start=100
over+=1
if over>1000:
    over=999
flag=0
for i in range(start,over):
    ge=i%10
    shi=i//10%10
    bai=i//100
    if ge**3+shi**3+bai**3==i:
        print(i)
        flag+=1
if flag==0:
    print("该范围内无水仙花数")